package com.wolf.service.impl;

import com.wolf.pojo.Wl_user_role;
import com.wolf.repository.Wl_user_roleMapper;
import com.wolf.service.Wl_user_roleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Wl_user_roleServiceImpl implements Wl_user_roleService {

    @Autowired
    private Wl_user_roleMapper wl_user_roleMapper;

    public void setWl_user_roleMapper(Wl_user_roleMapper wl_user_roleMapper) {
        this.wl_user_roleMapper = wl_user_roleMapper;
    }

    @Override
    public int deleteByPrimaryKey(String id) {
        return wl_user_roleMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Wl_user_role record) {
        return wl_user_roleMapper.insert(record);
    }

    @Override
    public int insertSelective(Wl_user_role record) {
        return wl_user_roleMapper.insertSelective(record);
    }

    @Override
    public Wl_user_role selectByPrimaryKey(String id) {
        return wl_user_roleMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Wl_user_role record) {
        return wl_user_roleMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Wl_user_role record) {
        return wl_user_roleMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Wl_user_role> getAll() {
        return wl_user_roleMapper.getAll();
    }

    @Override
    public List<Wl_user_role> getSelective(String rolename, String rolecode) {
        return wl_user_roleMapper.getSelective(rolename,rolecode);
    }
}
